package com.bankcomm.creditcard.redfriday;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

public class SplashActivity extends Activity {
	private static final String TAG = "SplashActivity";
	private Handler mHandler = new Handler() {
		@Override
		public void handleMessage(Message msg) {
			Intent intent = new Intent();
			intent.setClass(getApplicationContext(), MainActivity.class);
			startActivity(intent);
			finish();
		};
	};

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash);
		mHandler.sendMessageDelayed(mHandler.obtainMessage(), 1000);
		// TelephonyManager m = (TelephonyManager) getApplicationContext()
		// .getSystemService(Context.TELEPHONY_SERVICE);
		// String imei = m != null ? m.getDeviceId() : null;
		// Log.e(TAG, "onCreate: " + imei);

	}
}
